import { createRouter, createWebHashHistory } from 'vue-router';
import homeView from '@renderer/views/homeView.vue';

const router = createRouter({
  history: createWebHashHistory(), //NOTE createWebHistory 依赖于浏览器的 HTML5 History API，而 Electron 应用不是标准的浏览器环境
  routes: [
    {
      path: '/',
      name: 'home',
      component: homeView,
    },
  ],
});

export { router };
